{smcl}
{com}{sf}{ul off}{txt}{.-}
       log:  {res}grid search.smcl
  {txt}log type:  {res}smcl
 {txt}opened on:  {res} 9 Jan 2011, 16:48:55

{com}. do grid search.do
{txt}
{com}. * File created on 14 February 2009
. clear
{txt}
{com}. set memory 20m
{txt}(20480k)

{com}. 
. * GRID SEARCH TO FIND c
. 
. *** ALL COUNTRIES ***
. 
. *** US target incidents
. *MIPT
. use All_all.dta, clear
{txt}
{com}. qui forvalues i=1/99 {c -(}
{txt}
{com}. collapse (sum) ressq*
{txt}
{com}. stack ressq*, into(ss)
{txt}Warning:  data in memory will be lost.
         Press any key to continue, Ctrl-Break to abort.

{com}. sort ss
{txt}
. 
. *** Casualty incidents with a U.S. Target                                                                                               
. *MIPT
. use All_all.dta, clear
{txt}
{com}. qui forvalues i=1/99 {c -(}
{txt}
{com}. collapse (sum) ressq*
{txt}
{com}. stack ressq*, into(ss)
{txt}Warning:  data in memory will be lost.
         Press any key to continue, Ctrl-Break to abort.

{com}. sort ss
{txt}
. 
. *ITERATE
. use All_all.dta, clear
{txt}
{com}. qui forvalues i=1/99 {c -(}
{txt}
{com}. collapse (sum) ressq*
{txt}
{com}. stack ressq*, into(ss)
{txt}Warning:  data in memory will be lost.
         Press any key to continue, Ctrl-Break to abort.

{com}. sort ss
{txt}
. 
. *** LICs ***
. 
. *** All incidents
. *MIPT
. use LIC_all.dta, clear
{txt}
{com}. qui forvalues i=1/99 {c -(}
{txt}
{com}. collapse (sum) ressq*
{txt}
{com}. stack ressq*, into(ss)
{txt}Warning:  data in memory will be lost.
         Press any key to continue, Ctrl-Break to abort.

{com}. sort ss
{txt}
. 
. *ITERATE
. use LIC_all.dta, clear
{txt}
{com}. qui forvalues i=1/99 {c -(}
{txt}
{com}. collapse (sum) ressq*
{txt}
{com}. stack ressq*, into(ss)
{txt}Warning:  data in memory will be lost.
         Press any key to continue, Ctrl-Break to abort.

{com}. sort ss
{txt}
. 
. *** Casualty incidents
. *MIPT
. use LIC_all.dta, clear
{txt}
{com}. qui forvalues i=1/99 {c -(}
{txt}
{com}. collapse (sum) ressq*
{txt}
{com}. stack ressq*, into(ss)
{txt}Warning:  data in memory will be lost.
         Press any key to continue, Ctrl-Break to abort.

{com}. sort ss
{txt}
. 
. *ITERATE
. use LIC_all.dta, clear
{txt}
{com}. qui forvalues i=1/99 {c -(}
{txt}
{com}. collapse (sum) ressq*
{txt}
{com}. stack ressq*, into(ss)
{txt}Warning:  data in memory will be lost.
         Press any key to continue, Ctrl-Break to abort.

{com}. sort ss
{txt}
. 
. *** US target incidents
. *MIPT
. use LIC_all.dta, clear
{txt}
{com}. qui forvalues i=1/99 {c -(}
{txt}
{com}. collapse (sum) ressq*
{txt}
{com}. stack ressq*, into(ss)
{txt}Warning:  data in memory will be lost.
         Press any key to continue, Ctrl-Break to abort.

{com}. sort ss
{txt}
. 
. *ITERATE
. use LIC_all.dta, clear
{txt}
{com}. qui forvalues i=1/99 {c -(}
{txt}
{com}. collapse (sum) ressq*
{txt}
{com}. stack ressq*, into(ss)
{txt}Warning:  data in memory will be lost.
         Press any key to continue, Ctrl-Break to abort.

{com}. sort ss
{txt}
. 
. *** Casualty incidents with a U.S. Target                                                                                               
. *MIPT
. use LIC_all.dta, clear
{txt}
{com}. qui forvalues i=1/99 {c -(}
{txt}
{com}. collapse (sum) ressq*
{txt}
{com}. stack ressq*, into(ss)
{txt}Warning:  data in memory will be lost.
         Press any key to continue, Ctrl-Break to abort.

{com}. sort ss
{txt}
. 
. *ITERATE
. use LIC_all.dta, clear
{txt}
{com}. qui forvalues i=1/99 {c -(}
{txt}
{com}. collapse (sum) ressq*
{txt}
{com}. stack ressq*, into(ss)
{txt}Warning:  data in memory will be lost.
         Press any key to continue, Ctrl-Break to abort.

{com}. sort ss
{txt}
. 
. *** MICs ***
. 
. *** Casualty incidents
. *MIPT
. use MIC_all.dta, clear
{txt}
{com}. qui forvalues i=1/99 {c -(}
{txt}
{com}. collapse (sum) ressq*
{txt}
{com}. stack ressq*, into(ss)
{txt}Warning:  data in memory will be lost.
         Press any key to continue, Ctrl-Break to abort.

{com}. sort ss
{txt}
. 
. *ITERATE
. use MIC_all.dta, clear
{txt}
{com}. qui forvalues i=1/99 {c -(}
{txt}
{com}. collapse (sum) ressq*
{txt}
{com}. stack ressq*, into(ss)
{txt}Warning:  data in memory will be lost.
         Press any key to continue, Ctrl-Break to abort.

{com}. sort ss
{txt}
. 
. *** US target incidents
. *MIPT
. use MIC_all.dta, clear
{txt}
{com}. qui forvalues i=1/99 {c -(}
{txt}
{com}. collapse (sum) ressq*
{txt}
{com}. stack ressq*, into(ss)
{txt}Warning:  data in memory will be lost.
         Press any key to continue, Ctrl-Break to abort.

{com}. sort ss
{txt}
. 
. *ITERATE
. use MIC_all.dta, clear
{txt}
{com}. qui forvalues i=1/99 {c -(}
{txt}
{com}. collapse (sum) ressq*
{txt}
{com}. stack ressq*, into(ss)
{txt}Warning:  data in memory will be lost.
         Press any key to continue, Ctrl-Break to abort.

{com}. sort ss
{txt}
. 
. *** Casualty incidents with a U.S. Target                                                                                               
. *MIPT
. use MIC_all.dta, clear
{txt}
{com}. qui forvalues i=1/99 {c -(}
{txt}
{com}. collapse (sum) ressq*
{txt}
{com}. stack ressq*, into(ss)
{txt}Warning:  data in memory will be lost.
         Press any key to continue, Ctrl-Break to abort.

{com}. sort ss
{txt}
. 
. *ITERATE
. use MIC_all.dta, clear
{txt}
{com}. qui forvalues i=1/99 {c -(}
{txt}
{com}. collapse (sum) ressq*
{txt}
{com}. stack ressq*, into(ss)
{txt}Warning:  data in memory will be lost.
         Press any key to continue, Ctrl-Break to abort.

{com}. sort ss
{txt}
. 
. 
. *** HICs ***
. 
. *** All incidents
. *MIPT
. use HIC_all.dta, clear
{txt}
{com}. qui forvalues i=1/99 {c -(}
{txt}
{com}. collapse (sum) ressq*
{txt}
{com}. stack ressq*, into(ss)
{txt}Warning:  data in memory will be lost.
         Press any key to continue, Ctrl-Break to abort.

{com}. sort ss
{txt}
. 
. *ITERATE
. HIC_all.dta, clear
{txt}
{com}. qui forvalues i=1/99 {c -(}
{txt}
{com}. collapse (sum) ressq*
{txt}
{com}. stack ressq*, into(ss)
{txt}Warning:  data in memory will be lost.
         Press any key to continue, Ctrl-Break to abort.

{com}. sort ss
{txt}
. 
. *** Casualty incidents
. *MIPT
. use HIC_all.dta, clear
{txt}
{com}. qui forvalues i=1/99 {c -(}
{txt}
{com}. collapse (sum) ressq*
{txt}
{com}. stack ressq*, into(ss)
{txt}Warning:  data in memory will be lost.
         Press any key to continue, Ctrl-Break to abort.

{com}. sort ss
{txt}
. 
. *ITERATE
. use HIC_all.dta, clear
{txt}
{com}. qui forvalues i=1/99 {c -(}
{txt}
{com}. collapse (sum) ressq*
{txt}
{com}. stack ressq*, into(ss)
{txt}Warning:  data in memory will be lost.
         Press any key to continue, Ctrl-Break to abort.

{com}. sort ss
{txt}
. 
. *** US target incidents
. *MIPT
. use HIC_all.dta, clear
{txt}
{com}. qui forvalues i=1/99 {c -(}
{txt}
{com}. collapse (sum) ressq*
{txt}
{com}. stack ressq*, into(ss)
{txt}Warning:  data in memory will be lost.
         Press any key to continue, Ctrl-Break to abort.

{com}. sort ss
{txt}
. 
. *ITERATE
. use HIC_all.dta, clear
{txt}
{com}. qui forvalues i=1/99 {c -(}
{txt}
{com}. collapse (sum) ressq*
{txt}
{com}. stack ressq*, into(ss)
{txt}Warning:  data in memory will be lost.
         Press any key to continue, Ctrl-Break to abort.

{com}. sort ss
{txt}
. 
. *** Casualty incidents with a U.S. Target                                                                                               
. *MIPT
. use HIC_all.dta, clear
{txt}
{com}. qui forvalues i=1/99 {c -(}
{txt}
{com}. collapse (sum) ressq*
{txt}
{com}. stack ressq*, into(ss)
{txt}Warning:  data in memory will be lost.
         Press any key to continue, Ctrl-Break to abort.

{com}. sort ss
{txt}
. 
. *ITERATE
. use HIC_all.dta, clear
{txt}
{com}. qui forvalues i=1/99 {c -(}
{txt}
{com}. collapse (sum) ressq*
{txt}
{com}. stack ressq*, into(ss)
{txt}Warning:  data in memory will be lost.
         Press any key to continue, Ctrl-Break to abort.

{com}. sort ss
{txt}
. 
{txt}end of do-file

{com}. log close
       {txt}log:  {res}grid search.smcl
  {txt}log type:  {res}smcl
 {txt}closed on:  {res} 9 Jan 2011, 17:03:08
{txt}{.-}
{smcl}
{txt}{sf}{ul off}